const OceanFeatureEnum = {
    // 2d
    WIND: {
        name: 'wind',
        displayName: '风力',
        dataName: 'wind',
        description: '',
        unit: '',
        unit: 'm/s', 
        cnUnit: '米/秒',
        databaseField: 'f10',
        iconClass: 'iconfont icon-feng',
        imgSrc: 'static/imgs/wind.png'
    },
    WAVE: {
        name: 'wave',
        displayName: '',
        dataName: 'wave',
        description: '',
        unit: '', 
        cnUnit: '',
        databaseField: '',
        iconClass: ''
    },
    CURRENT: {
        name: 'current',
        displayName: '洋流',
        dataName: 'forecast_current',
        description: '',
        unit: 'm/s', 
        cnUnit: '米/秒',
        databaseField: 'f4',
        iconClass: 'iconfont icon-yangliu',
        imgSrc: 'static/imgs/current.png'
    },
    UPSTREM: {
        name: 'upstream',
        displayName: '',
        dataName: '',
        description: '',
        unit: '', 
        cnUnit: '',
        databaseField: '',
        iconClass: ''
    },
    TIDE: {
        name: 'tide',
        displayName: '潮汐',
        dataName: 'forecast_tide',
        description: '',
        unit: 'm/s', 
        cnUnit: '米/秒',
        databaseField: 'f11',
        iconClass: 'iconfont icon-chaoxi',
        imgSrc: 'static/imgs/tide.png'
    },
    // 1d
    CHLORA: {
        name: 'chlora',
        displayName: '叶绿素',
        dataName: 'forecast_chlora',
        description: '',
        unit: 'mg/m³', 
        cnUnit: '毫克/立方米',
        databaseField: 'f1',
        iconClass: 'iconfont icon-yelvsu',
        imgSrc: 'static/imgs/chlora.png'
    },
    HI_CHLORA: {
        name: 'hchlora',
        displayName: '叶绿素-葵',
        dataName: 'hchlora',
        description: '',
        unit: 'mg/m³', 
        cnUnit: '毫克/立方米',
        databaseField: 'f8',
        iconClass: 'iconfont icon-yelvsu'
    },
    TEMP: {
        name: 'temp',
        displayName: '水温',
        dataName: 'forecast_temp',
        description: '',
        unit: '°C', 
        cnUnit: '度',
        databaseField: 'f2',
        iconClass: 'iconfont icon-haibiaowendu',
        imgSrc: 'static/imgs/temp.png'
    },
    SALT: {
        name: 'salt',
        displayName: '盐度',
        dataName: 'forecast_salt',
        description: '',
        unit: 'mg/m³', 
        cnUnit: '毫克/立方米',
        databaseField: 'f3',
        iconClass: ''
    },
    OCEAN_HEIGHT: {
        name: 'oceanheight',
        displayName: '海表高度',
        dataName: 'forecast_oceanheight',
        description: '',
        unit: 'm', 
        cnUnit: '米',
        databaseField: 'f6',
        iconClass: ''
    },
    WAVE_HEIGHT: {
        name: 'waveheight',
        displayName: '浪高',
        dataName: 'waveheight',
        description: '',
        unit: 'm', 
        cnUnit: '米',
        databaseField: 'f7',
        iconClass: 'iconfont icon-langgao-copy',
        imgSrc: 'static/imgs/waveHeight.png'
    },
    FRONT: {
        name: 'front',
        displayName: '锋面',
        dataName: '',
        description: '',
        unit: '', 
        cnUnit: '',
        databaseField: '',
        iconClass: ''
    },
    COLD_HOT: {
        name: 'coldhot',
        displayName: '冷乱水团',
        dataName: '',
        description: '',
        unit: '', 
        cnUnit: '',
        databaseField: '',
        iconClass: ''
    },
    OCEAN_DEPTH: {
        name: 'terrain',
        displayName: '海洋水深',
        dataName: '',
        description: '',
        unit: 'm', 
        cnUnit: '米',
        databaseField: 'f5',
        iconClass: ''
    },
    HI_SST: {
        name: 'hsst',
        displayName: '水温-葵',
        dataName: 'hsst',
        description: '',
        unit: '°C', 
        cnUnit: '度',
        databaseField: 'f9',
        iconClass: 'iconfont icon-haibiaowendu'
    },
    OXYGEN: {
        name: 'oxygen',
        displayName: '溶解氧',
        dataName: 'forecast_oxygen',
        description: '',
        unit: 'mmol/m³', 
        cnUnit: '毫摩尔/立方米',
        databaseField: 'f12',
        iconClass: ''
    },
    MLSP: {
        name: 'mlsp',
        displayName: '气压',
        dataName: 'forecast_mlsp',
        description: '',
        unit: 'Pa', 
        cnUnit: '帕斯卡',
        databaseField: 'f13',
        iconClass: ''
    },

    // 其他
    // PRECIP: 'precip', // 降雨量
    // CLOUD: 'cloud', // 云
    // FISH_ANIMATION: 'fish-animation',
    SEA_CHART: {
        name: 'sea-chart',
        displayName: '海图',
        dataName: '',
        description: '',
        unit: '', 
        cnUnit: '',
        databaseField: ''
    },
}


const UserFeatureList = [
    {
        ...OceanFeatureEnum.CURRENT,
        type: 2,
        icon: 'fish-yangliu',
    },
    {
        ...OceanFeatureEnum.TEMP,
        type: 1,
        icon: 'fish-haibiaowendu'
    },
    {
        ...OceanFeatureEnum.CHLORA,
        type: 1,
        icon: 'fish-yelvsu'
    },
    {
        ...OceanFeatureEnum.TIDE,
        type: 2,
        icon: 'fish-yangliu'
    },
    {
        ...OceanFeatureEnum.WAVE_HEIGHT,
        type: 1,
        icon: 'fish-shangyongliu'
    },
    // {
    //   ...OceanFeatureEnum.SALT,
    //   type: 1,
    //   icon: 'fish-yandu'
    // },
    // {
    //   ...OceanFeatureEnum.OXYGEN,
    //   type: 1,
    //   icon: 'fish-haibiaowendu'
    // },
    // {
    //   ...OceanFeatureEnum.MLSP,
    //   type: 1,
    //   icon: 'fish-haibiaowendu'
    // },
    {
        ...OceanFeatureEnum.WIND,
        type: 2,
        icon: 'fish-feng'
    },

    // {
    //   ...OceanFeatureEnum.OCEAN_HEIGHT,
    //   type: 1,
    //   icon: 'fish-haipingmian'
    // },
]

const AdminFeatureList = [
    {
        ...OceanFeatureEnum.CURRENT,
        type: 2,
        icon: 'fish-yangliu'
    },
    {
        ...OceanFeatureEnum.TEMP,
        type: 1,
        icon: 'fish-haibiaowendu'
    },
    {
        ...OceanFeatureEnum.CHLORA,
        type: 1,
        icon: 'fish-yelvsu'
    },
    {
        ...OceanFeatureEnum.HI_CHLORA,
        icon: 'fish-yelvsu',
        type: 1
    },
    {
        ...OceanFeatureEnum.SALT,
        type: 1,
        icon: 'fish-yandu'
    },
    {
        ...OceanFeatureEnum.WAVE_HEIGHT,
        type: 1,
        icon: 'fish-shangyongliu'
    },
    {
        ...OceanFeatureEnum.TIDE,
        type: 2,
        icon: 'fish-yangliu'
    },
    {
        ...OceanFeatureEnum.WIND,
        type: 2,
        icon: 'fish-feng'
    },
    {
        ...OceanFeatureEnum.OXYGEN,
        type: 1,
        icon: 'fish-haibiaowendu'
    },
    {
        ...OceanFeatureEnum.MLSP,
        type: 1,
        icon: 'fish-haibiaowendu'
    },


    // {
    //   ...OceanFeatureEnum.OCEAN_HEIGHT,
    //   type: 1,
    //   icon: 'fish-haipingmian'
    // }
]
const EventEnum = {
    MAPCREATED: 'map_created', // 地图创建
    GETALLFEATURES: 'getAllFeatures',  //组件间geojson数据的传递
    CRS: 'crs',                     //feature数据中的crs参数
    USERNAME: 'username',    //用户名
    ALL: 'all',
    DATANAME: 'dataname',
    UPDATEFISHERY: 'updateFishery',   //更新渔场数据
    TIMECHANGE: 'timeChange',  //进度条的时间点改变
    UPDATEOCEANDATATIP: 'updateOceanDataTip',  //更新海况数据tip弹窗,
    RESETCLICKEDBASAN: 'resetClickedBasan',
    RADARSCANNING: 'radarScanning',
    COLLECTBASAN: 'collectBasan',
    REMOVECOLLECTEDBASAN: 'removeCollectedBasan'
}

const FishList = [
    { name: '罗非鱼', imgSrc: 'static/imgs/luofeiyu.png' },
    { name: '中上层鱼', imgSrc: 'static/imgs/zhongshangcengyu-jianyu.jpg', id: 0 },
    { name: '底层鱼', imgSrc: 'static/imgs/dicengyu-hongchouyu.jpg', id: 1 },
    { name: '金枪鱼', imgSrc: 'static/imgs/jinqiangyu.jpg', id: 2 },
    { name: '鳕鱼', imgSrc: 'static/imgs/xueyu.jpg', id: 3 },
    { name: '鱿鱼', imgSrc: 'static/imgs/youyu.png', id: 4 },
    { name: '沙丁鱼', imgSrc: 'static/imgs/shadingyu.png', id: 5 },
    { name: '章鱼', imgSrc: 'static/imgs/zhangyu.png', id: 6 },
    { name: '蓝园鲹', imgSrc: 'static/imgs/lanyuanshen.jpg', id: 7 },
    { name: '鲐鱼', imgSrc: 'static/imgs/taiyu.png', id: 8 },
    { name: '马鲛鱼', imgSrc: 'static/imgs/majiaoyu.jpg', id: 9 },
    { name: '鯷鱼', imgSrc: 'static/imgs/tiyu.png', id: 10 },
    { name: '带鱼', imgSrc: 'static/imgs/daiyu.jpg', id: 11 },
    { name: '黄鱼', imgSrc: 'static/imgs/huangyu.jpg', id: 12 },
    { name: '其他', imgSrc: 'static/imgs/all.png' },
  ]

const UniEventEnum = {
    SaveCatchRecords: 'saveCatchRecords',
	PurchaseBasan: 'purchaseBasan',
}


export {
    OceanFeatureEnum,
    EventEnum,
    UserFeatureList,
    AdminFeatureList,
    FishList,
    UniEventEnum
}